import request from "@/services";

// 推荐歌单
export const getrcmdSongMenuAPI = (limit: number) => {
  return request.get<any>({
    url: '/personalized',
    params: {
      limit
    }
  })
}

// 推荐艺人
export const getToplistArtistAPI = (type = 1) => {
  return request.get<any>({
    url: '/toplist/artist',
    params: {
      type,
    }
  })
}

// 新专辑速递
export const getAlbumNewAPI = (limit: number) => {
  return request.get<any>({
    url: '/album/new?area=ALL',
    params: {
      limit
    }
  })
}

// 排行榜
export const getToplistAPI = () => {
  return request.get<any>({
    url: '/toplist',
  })
}